//
//  YeeTitleScrollView.h
//  HappyRent
//
//  Created by CoderYee on 2017/3/30.
//  Copyright © 2017年 内圈科技. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol YeeTitleScrollViewdelegate <NSObject>

-(void)didselectedindex:(NSInteger )atIndex;


@end

@interface YeeTitleScrollView : UIView


-(instancetype)initWithFrame:(CGRect)frame withTitleArray:(NSArray *)titleArray;

@property (nonatomic, assign)NSInteger selectIndex;
@property(nonatomic,  assign)BOOL      allowEqualWidth;//等宽
@property(nonatomic,weak)id<YeeTitleScrollViewdelegate>delegte;

-(void)scrolltoIndex:(NSInteger)Index;

@end
